﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:v="clr-namespace:ShredTheLog.Views;assembly=ShredTheLog.Views"
    xmlns:vm="clr-namespace:ShredTheLog.ViewModels;assembly=ShredTheLog.ViewModels"
    xmlns:cnv="clr-namespace:ShredTheLog.Converters;assembly=ShredTheLog.Converters"
    xmlns:c="clr-namespace:ShredTheLog.Controls;assembly=ShredTheLog.Controls"
    >

    <DataTemplate DataType="{x:Type vm:AboutViewModel}">
        <Grid Width="500" Height="450">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <DockPanel>
                <Border DockPanel.Dock="Top" HorizontalAlignment="Stretch" Height="70" Background="AntiqueWhite">
                    <TextBlock Text="Logo placeholder" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24" FontWeight="Bold"/>
                </Border>

                <DockPanel Grid.Row="0" Margin="{x:Static c:UX.DialogPaddingThickness}">
                    <TextBlock DockPanel.Dock="Top" Margin="0, 0, 0, 2">
                            <TextBlock.Text>
                                <MultiBinding StringFormat="{c:LocalizedString s_ProductInfo}">
                                    <Binding Path="Product"/>
                                    <Binding Path="Version"/>
                                </MultiBinding>
                            </TextBlock.Text>
                    </TextBlock>
                    <TextBlock DockPanel.Dock="Top" Text="{Binding Copyright}" Margin="0"/>
                    <TextBlock DockPanel.Dock="Top" Text="{c:LocalizedString s_Credits}" Margin="0, 8, 0, 4"/>
                    <FlowDocumentScrollViewer BorderThickness="1" BorderBrush="Gray">
                        <FlowDocument>
                            <Paragraph>
                                <Bold>Programming:</Bold>
                                <LineBreak/>
                                Beetle
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>Vector Smiley Pack:</Bold>
                                <LineBreak/>
                                <c:ShellHyperlink NavigateUri="http://tonygines.com/">Tony Gines</c:ShellHyperlink>
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>Vista Toolbar icons:</Bold>
                                <LineBreak/>
                                <c:ShellHyperlink NavigateUri="http://www.grafile.com/presentation/Vista_Toolbar_library.html">grafile.com</c:ShellHyperlink>
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>WebGloss icons:</Bold>
                                <LineBreak/>
                                <c:ShellHyperlink NavigateUri="http://www.snap2objects.com/">snap2objects</c:ShellHyperlink>
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>Country flags:</Bold>
                                <LineBreak/>
                                <c:ShellHyperlink NavigateUri="http://commons.wikimedia.org">Wikimedia Commons</c:ShellHyperlink>
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>AIMLBot library:</Bold>
                                <LineBreak/>
                                <c:ShellHyperlink NavigateUri="http://aimlbot.sourceforge.net/">Nicholas H.Tollervey</c:ShellHyperlink>
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>Some parts of Odigo theme:</Bold>
                                <LineBreak/>
                                <Run Text="Default "/>
                                <c:ShellHyperlink NavigateUri="http://en.wikipedia.org/wiki/Odigo_Messenger">Odigo</c:ShellHyperlink>
                                <Run Text=" skin and sounds"/>
                                <LineBreak/>
                                <LineBreak/>
                                <Bold>NotifyIcon library:</Bold>
                                <LineBreak/>
                                <c:ShellHyperlink NavigateUri="http://www.hardcodet.net/projects/wpf-notifyicon">Philipp Sumi</c:ShellHyperlink>
                                <LineBreak/>
                                <LineBreak/>
                            </Paragraph>
                        </FlowDocument>
                    </FlowDocumentScrollViewer>
                </DockPanel>
            </DockPanel>

            <Button Grid.Row="1" Command="{Binding CloseCommand}" Content="{c:LocalizedString s_Close}" HorizontalAlignment="Right" IsCancel="True" IsDefault="True" MinWidth="{x:Static c:UX.ButtonWidth}">
                <Button.Margin>
                    <Thickness Right="{x:Static c:UX.DialogPadding}" Bottom="{x:Static c:UX.DialogPadding}"/>
                </Button.Margin>
            </Button>
        </Grid>
    </DataTemplate>
</ResourceDictionary>